package com.zjc.yohoshop.di.modules;

import com.zjc.yohoshop.mvp.contract.HomeFragmentContract;
import com.zjc.yohoshop.mvp.model.HomeFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class HomeFragmentModules {

    private HomeFragmentContract.HomeFragmentIView iView;

    public HomeFragmentModules(HomeFragmentContract.HomeFragmentIView iView){
        this.iView = iView;
    }

    @Provides
    public HomeFragmentContract.HomeFragmentIView providerIView(){
        return iView;
    }

    @Provides
    public HomeFragmentContract.HomeFragmentIModel providerIModel(){
        return new HomeFragmentModel();
    }

}
